<%--
  Created by IntelliJ IDEA.
  User: LR0602
  Date: 2021/11/19
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%--
修改用户信息
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Modify</title>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>

    <style>
        #sub{
            margin: 10px 0 0 600px;
        }

        #res{
            margin: 0 0 0 20px;
        }
        #return{
            margin: 0 0 0 20px;
        }
        #all{

            background-image: url("../img/motianlun.jpg");
        }
    </style>

</head>
<body>
<div id="all">
    <form action="${pageContext.request.contextPath}/modifyUserServlet" method="post">
        <input type="hidden" name="uid" value="${user1.uid}"><%--隐藏域,没有效果,可以传递参数--%>
        <div class="form-group">
            <label for="username">网名</label>
            <input type="text" class="form-control" id="username" placeholder="请输入新网名" name="username" value="${user1.username}">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" class="form-control" id="password" placeholder="请输入新密码" name="password" value="${user1.password}" >
        </div>
        <div class="form-group">
            <label for="name">姓名</label>
            <input type="text" class="form-control" id="name" placeholder="请输入新姓名" name="name" disabled="disabled" value="${user1.name}">
        </div>
        <div class="form-group">
            <label for="email">邮箱</label>
            <input type="email" class="form-control" id="email" placeholder="请输入新邮箱" name="email" value="${user1.email}">
        </div>
        <div class="form-group">
            <label for="telephone">电话</label>
            <input type="text" class="form-control" id="telephone" placeholder="请输入新电话" name="telephone" value="${user1.telephone}">
        </div>
        <div class="form-group">
            <label for="birthday">生日</label>
            <input type="date" class="form-control" id="birthday" name="birthday"<%--readonly="readonly"只读模式--%>
                   value="<fmt:formatDate value="${user1.birthday}" type="date" pattern="yyyy-MM-dd"/> "/>
        </div>
        <div >
            <label >性别</label><br>
            男<input type="radio"  name="sex" value="男">
            女<input type="radio"  name="sex" value="女">
        </div>
        <div id="sub">
            <input type="submit" class="btn btn-primary"  value="提交">
            <input type="reset" value="清空" class="btn btn-primary" id="res">
            <a href="${pageContext.request.contextPath}/findAllUser" id="return" class="btn btn-primary">返回</a>
        </div>
    </form>
</div>

</body>
</html>
